﻿package server;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

public interface ResBookInterface extends Remote{
	
	public String getName(int i)throws RemoteException;

	
	public String getOrderDate(int i)throws RemoteException;

	
	public String getPhone(int i)throws RemoteException;
	public int addResOrder(int workNum,int pNum,String name,String phone,Date date)throws RemoteException;
	
	public int getFirstOrderNumber(Date day)throws RemoteException;
	
	public int getNumOfPeo(int i)throws RemoteException;
	
	public int getBookSize(Date day)throws RemoteException;

	public String getBookDate(int i)throws RemoteException;
	
	public boolean deleteBook(int i)throws RemoteException;
	
	public int[] getAllBookNum() throws RemoteException;




	
	
}
